package com.tangly.codeing.dao;

import com.tangly.codeing.model.${classInfo.className};
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import com.tangly.codeing.utils.PageInfo;

import java.util.List;

/**
 * ${classInfo.classComment}
 * @author tangbing
 * @date ${.now?string('yyyy-MM-dd')}
 */
@Component
public interface ${classInfo.className}Dao {

    /**
    * 新增
    */
    void insert(${classInfo.className} ${classInfo.className?uncap_first});

    /**
    * 删除
    */
    int delete(@Param("id") Long id);

    /**
     * 批量删除
     */
    int batchDelete(@Param("ids") List<String> ids);

    /**
    * 更新
    */
    int update(${classInfo.className} ${classInfo.className?uncap_first});

    /**
    * Load查询
    */
    ${classInfo.className} load(@Param("id") Long id);

    /**
    * 分页查询Data
    */
	List<${classInfo.className}> pageList(PageInfo pageInfo);

    /**
    * 分页查询Count
    */
    int pageListCount(PageInfo pageInfo);

}
